//
//  FFPayOrderAddressCell.m
//  FFMall
//
//  Created by ale tan on 2017/9/21.
//  Copyright © 2017年 IT.Bear. All rights reserved.
//

#import "FFPayOrderAddressCell.h"

@interface FFPayOrderAddressCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UIButton *statusButton;

@end

@implementation FFPayOrderAddressCell

+ (CGFloat)calculateForHeight{
    return 80;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)updateCellWithModel:(FBAddressModel *)model IndexPath:(NSIndexPath *)indexPath{
    _nameLabel.text = model.consigneeName;
    _phoneLabel.text = model.consigneePhone;
    _addressLabel.text = model.address;
}

//编辑地址
- (IBAction)clickEditAddress:(id)sender {
    if (_editAddress) {
        _editAddress();
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    _statusButton.selected = selected;
}

@end
